<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">统计管理</h1>
</div>
<toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
<div class="wrapper-md">
    <div class="panel panel-default">
        <div class="panel-heading">
            渠道复投统计
        </div>
        <div class="panel-body b-b b-light">
            <div class="form-group pull-in clearfix" ng-controller="DatepickerDemoCtrl">
                <div class="col-sm-2">
                    <label><font><font>开始时间:</font></font></label>
                    <p class="input-group">
                        <span class="input-group-btn">
                    <button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                  </span>
                        <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open($event)" ng-model="redeliveryData.DateStart"
                            is-open="opened" max-date="maxDate" datepicker-options="dateOptions" ng-required="true" close-text="Close"
                        />
                    </p>
                </div>
                <div class="col-sm-2">
                    <label><font><font>结束时间:</font></font></label>
                    <p class="input-group">
                        <span class="input-group-btn">
                    <button type="button" class="btn btn-default" ng-click="open1($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                  </span>
                        <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open1($event)" ng-model="redeliveryData.DateEnd"
                            is-open="opened1" max-date="maxDate" datepicker-options="dateOptions" ng-required="true" close-text="Close"
                        />
                    </p>
                </div>
                <div class="col-sm-2">
                    <button class="btn btn-info btn-addon" style="margin-top:25px" ng-if='!graybtn' ng-click="querydata()">查询</button>
                    <button class="btn btn-light btn-addon" style="margin-top:25px" ng-if='graybtn'>查询</button>

                </div>
            </div>
        </div>
        <div class="table-responsive">
      <table id="tab" class="table table-striped m-b-none">
        <thead>
          <tr>
            <!-- <th style="min-width:80px">渠道Id</th> -->
            <th style="min-width:100px">渠道名称</th>
            <th style="min-width:140px">当日注册人数</th>
            <th style="min-width:140px">当日实名人数</th>
            <th style="min-width:200px">当日注册当日投资定期人数</th>
            <th style="min-width:200px">当日注册当日投资定期金额</th>
            <th style="min-width:220px">之前在注册当日投资定期人数</th>
            <th style="min-width:200px">之前在注册当日投资金额</th>
            <th style="min-width:150px">当日复投定期人数</th>
            <th style="min-width:150px">当日复投定期金额</th>
            <th style="min-width:200px">当日累计投资定期人数</th>
            <th style="min-width:200px">当日累计投资定期金额</th>
            <th style="min-width:200px">当日注册当日投资活期人数</th>
            <th style="min-width:200px">当日注册当日投资活期金额</th>
            <th style="min-width:220px">之前在注册当日投资活期人数</th>
            <th style="min-width:220px">之前在注册当日投资活期金额</th>
            <th style="min-width:150px">当日复投活期人数</th>
            <th style="min-width:150px">当日复投活期金额</th>
            <th style="min-width:200px">当日累计投资活期人数</th> 
            <th style="min-width:200px">当日累计投资活期金额</th> 
            <th style="min-width:150px">当日累计投资人数</th> 
            <th style="min-width:150px">当日累计投资金额</th> 
          </tr>
        </thead>
        <tbody>
          <tr ng-if="redeliveryList==''"><td colspan="9">当前无任何数据</td></tr>
          <tr ng-repeat="obj in redeliveryList">
            <!-- <td ng-bind="obj.SourceId"></td> -->
            <td ng-bind="obj.SourceName"></td>
            <td ng-bind="obj.RegisterNum"></td>
            <td ng-bind="obj.RealNameNum"></td>
            <td ng-bind="obj.NowInvestDQNum"></td>
            <td ng-bind="obj.NowInvestDQPrice"></td>
            <td ng-bind="obj.BeforeInvestDQNum"></td>
            <td ng-bind="obj.BeforeInvestDQPrice"></td>
            <td ng-bind="obj.ReCastDQNum"></td>
            <td ng-bind="obj.ReCastDQPrice"></td>
            <td ng-bind="obj.TotalInvestDQNum"></td>
            <td ng-bind="obj.TotalInvestDQPrice"></td>
            <td ng-bind="obj.NowInvestHQNum"></td>
            <td ng-bind="obj.NowInvestHQPrice"></td>
            <td ng-bind="obj.BeforeInvestHQNum"></td>
            <td ng-bind="obj.BeforeInvestHQPrice"></td>
            <td ng-bind="obj.ReCastHQNum"></td> 
            <td ng-bind="obj.ReCastHQPrice"></td> 
            <td ng-bind="obj.TotalInvestHQNum"></td> 
            <td ng-bind="obj.TotalInvestHQPrice"></td> 
            <td ng-bind="obj.TotalInvestNum"></td> 
            <td ng-bind="obj.TotalInvestPrice"></td> 
            <td class="text-info" style="cursor: pointer;" ng-bind="obj.MyInviteMobile" ng-click="viewDetails(obj.MyInviteMobile)"></td> 
          </tr>
        </tbody>
      </table>
    </div>
    </div>
</div>